//
//  HallViewController.h
//  OrderSeat
//
//  Created by haiming on 13-10-11.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import "HallCell.h"

@class HallDataSource;
@interface HallViewController : BaseViewController<HallCellDelegate,UIAlertViewDelegate>


@property (strong, nonatomic) IBOutlet UIButton *orderTimeBtn;
@property (strong, nonatomic) IBOutlet UILabel *totalCountLabel;
@property (strong, nonatomic) IBOutlet UIView *topView;
@property (strong, nonatomic) IBOutlet UIView *downView;
@property (strong, nonatomic) IBOutlet UITableView *hallTV;
@property (weak, nonatomic) IBOutlet UIButton *btnDone;

@property (strong, nonatomic) HallDataSource *dataSource;
@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSString *orderTime;
@property (assign, nonatomic) int seatState;
@property (assign, nonatomic) SeatType seatType;

- (id)initWithURL:(NSString *)url;

@end


@interface HallDataSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) HallViewController *viewController;

@property (nonatomic, strong) NSMutableArray *seatList;
@property (strong, nonatomic) NSMutableDictionary *seatEntity;

- (void)fetchSeatListWithURL:(NSString*)url;

@end